package com.data241210.SpringbootDemo.service;

import com.data241210.SpringbootDemo.model.Student;

import java.util.List;

public interface StudentService {
    //获取全部数据
    List<Student> findAll();
    //保存数据
    int save(Student student);
    //删除数据
    int delete(Integer sno);
    //按学号查找数据
    Student findBySno(Integer sno);
    //编辑数据
    int update(Student student);

    List<Student> findByName(String sname);

}
